home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hardcore Gamer Resource Kit
/
Hardcore Gamer Resource Kit - Disc 1.iso
/
flight
/
fs5
/
utils
/
genback
/
GENBACK.TXT
< prev
Wrap
Text File
|
1994-12-22
|
3KB
|
99 lines
----------------------------------------
GenBack : Reverse Engineering for BGLGEN
----------------------------------------
Version 1.1a
Version 1.0a
Version 1.1a Maintenance version: emulation of coprocessor
error messages
Decompiles BGL files in the BGLGEN format.
This program should allow to decompile a BGL file created with BGLGEN, edit
it via a text editor and compile it back with BGLGEN. This program is
released as a FreeWare, so you can copy and distribute it as you want, as
long as you distribute this text file with it.
Supported Features : VOR, ILS, NDB, IMO Markers, ATIS, Airport Menus and
runways.
You are advised that feedback is more than welcome: all comments or criticism
will be considered on a constructive basis, and none will be considered as
minor or unnecessary. Contact:
Olivier Briot :
obriot@epi.univ-montp2.fr (Internet)
100443,3531 on Compuserve
HOW TO USE :
------------
to decompile "file.bgl" into a text file "file.txt" type:
gbk file.bgl file.txt
All the file will be decompiled. If you wish to analyze only a specific part
of the file, this can be done by typing:
gbk file.bgl file.txt param
where param is an integer, obtained by adding the values corresponding to the
sections you wish to decompile :
1 for sections 1-6 : synthetic scenery
2 for section 0: VOR - ILS
4 for section 14: NDB
8 for section 16: IMO Markers
16 for section 11: Airports menus
32 for section 13: ATIS Messages
64 for partial section 9 decoding : Runways
If you wish to obtain a full decoding of section 9, you may use another
program of mine : BGL2BGS (version 1.0c at the time I type this note.)
LIMITATIONS
-----------
This little program is expected to work fine on files compiled with BGLGEN.
The analysis of section 9 is minimal: just necessary to extract the runways.
If you decompile files created with another compiler, the analysis will stop
in this section to the first unrecognized item, and a message "not compiled
with BGLGEN will appear". However, the analysis of other sections will be
done. Of course, it would have been possible to extract the runways in a file
containing more than that in sec.9. I'm not sure this is worth the additionnal
program lines... waiting for feedback.
I think you will understand that intensively testing this program has not been
possible, due to the time it takes. THere will be bugs. Please inform me and
I'll correct it.
When you compile back a decompiled file, it will have the same length as the
original, IF THE ORIGINAL HAS BEEN COMPILED WITH BGLGEN. If this is not the
case, the length may change (due to text string optimization, performed by
some compilers).
CREDITS :
---------
All FS5 hackers are deeply indebted to Maurizio Gavioli (and contributors)
for his FS5STRUC file. Enno Borgsteede has created the BGLGEN compiler.
By writing this program, I had another opportunity to appreciate his
excellent work.
Good design !